package ooday01;

import com.sun.xml.internal.ws.api.ha.StickyFeature;

import javax.naming.Name;

public class Student {
    String name;
    int age;
    String className;
    String stuId;

    public String getName() {
        return name;
    }

    void study() {
        System.out.println(this.name + "在学习...");
    }

    void sayHi() {
        System.out.println("大家好,我叫:"+this.name + ",今年" + age + "岁了"+"我的班级是"+className+";我的学号是:"+stuId);

    }
    void Play(){
        System.out.println("先学习,后玩");
    }
      Student(int age1,String name1){
        this.name=name1;
        this.age=age1;
    }
     protected Student(){
        this(100,"moren");
    }
    Student(int age,String name ,String className,String stuId){
        this.age=age;
        this.name= name;
        this.className=className;
        this.stuId=stuId;
    }
}
